package com.navi.loaddata.core.oracleEntity.cell2;

import javax.persistence.*;

/**
 * Created by ghost on 2018/3/25.
 */
@Entity
@Table(name = "ETL_CELL2_STEP_V", schema = "EDALDR", catalog = "")
public class EtlCell2StepV {
    private String stepId;
    private String stepGroup;
    private String stepSeq;
    private String stepDesc;
    private String stepType;

    @Id
    @Column(name = "STEP_ID")
    public String getStepId() {
        return stepId;
    }

    public void setStepId(String stepId) {
        this.stepId = stepId;
    }

    @Basic
    @Column(name = "STEP_GROUP")
    public String getStepGroup() {
        return stepGroup;
    }

    public void setStepGroup(String stepGroup) {
        this.stepGroup = stepGroup;
    }

    @Basic
    @Column(name = "STEP_SEQ")
    public String getStepSeq() {
        return stepSeq;
    }

    public void setStepSeq(String stepSeq) {
        this.stepSeq = stepSeq;
    }

    @Basic
    @Column(name = "STEP_DESC")
    public String getStepDesc() {
        return stepDesc;
    }

    public void setStepDesc(String stepDesc) {
        this.stepDesc = stepDesc;
    }

    @Basic
    @Column(name = "STEP_TYPE")
    public String getStepType() {
        return stepType;
    }

    public void setStepType(String stepType) {
        this.stepType = stepType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlCell2StepV that = (EtlCell2StepV) o;

        if (stepId != null ? !stepId.equals(that.stepId) : that.stepId != null) return false;
        if (stepGroup != null ? !stepGroup.equals(that.stepGroup) : that.stepGroup != null) return false;
        if (stepSeq != null ? !stepSeq.equals(that.stepSeq) : that.stepSeq != null) return false;
        if (stepDesc != null ? !stepDesc.equals(that.stepDesc) : that.stepDesc != null) return false;
        if (stepType != null ? !stepType.equals(that.stepType) : that.stepType != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = stepId != null ? stepId.hashCode() : 0;
        result = 31 * result + (stepGroup != null ? stepGroup.hashCode() : 0);
        result = 31 * result + (stepSeq != null ? stepSeq.hashCode() : 0);
        result = 31 * result + (stepDesc != null ? stepDesc.hashCode() : 0);
        result = 31 * result + (stepType != null ? stepType.hashCode() : 0);
        return result;
    }
}
